package com.tbfs.admin.dao;

import java.util.List;

import com.tbfs.admin.vo.Company;
import com.tbfs.common.AbsBaseDaoImpl;

public class CompanyDAO extends  AbsBaseDaoImpl{

	
	public void saveCompanyInfo(Company company) {
		getSqlMapClientTemplate().insert("company.abatorgenerated_insert", company);
	}
	
	public void updateCompanyInfo(Company company){
	   this.getSqlMapClientTemplate().update("company.abatorgenerated_updateByPrimaryKeySelective", company);
	}
	
	public void deletecompanyInfo(Company company){
		this.getSqlMapClientTemplate().delete("company.abatorgenerated_deleteByPrimaryKey", company);
	}

	public List queryCompanyInfoTree() {
		List list = getSqlMapClientTemplate().queryForList("company.select_companyInfoTree_sql");
		return list;
	}

	@Override
	protected String getInsertSql() {
		// TODO Auto-generated method stub
		return "company.abatorgenerated_insert";
	}

	@Override
	protected String getUpdateByPrimaryKeySql() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected String getUpdateByPrimaryKeySelectiveSql() {
		// TODO Auto-generated method stub
		return "company.abatorgenerated_updateByPrimaryKeySelective";
	}

	@Override
	protected String getDeleteByPrimaryKeySql() {
		// TODO Auto-generated method stub
		return "company.abatorgenerated_deleteByPrimaryKey";
	}

	@Override
	protected String getQueryBySelectiveSql() {
		// TODO Auto-generated method stub
		return "company.select_companyInfo_sql";
	}

	@Override
	protected String getQueryBySelectiveCountSql() {
		// TODO Auto-generated method stub
		return "company.select_companyInfo_total_sql";
	}

	@Override
	protected String getSelectByEntityIdSql() {
		// TODO Auto-generated method stub
		return null;
	}
}